struct LinkNode
{
    unsigned int ID,IP;
};

struct NetNode{
    unsigned int Prefix,Mask;
};

struct Node
{
    
    int flag;//node类型
    union{//主要是这里用了个union，显得高级一点，这样也可以让两个节点统一为一个
        LinkNode Lnode;
        NetNode Nnode;
    }LinkOrNet;
    unsigned int Metric;
    Node* next;
};

struct HNode//表头
{
    unsigned int RouterId;
    Node* ln_link;
    HNode* next;
};
